<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
 <head>
 <jsp:include page="/common/manage_meta.jsp" />
<title>开业登记</title>
<script type="text/javascript">	
function validate()
{    
 if(document.getElementById("conditionValue").value==""){
 alert("请输入内容！");
 return false;}
 return true;
}
function validateOne(){
if(document.getElementById("startdate").value==""){
	alert("请选择起始日期");
	  return false;
}
if(document.getElementById("enddate").value==""){
	alert("请选择截止日期");
	  return false;
}
if(document.getElementById("startdate").value>document.getElementById("enddate").value){
   alert("你输入的日期有误");
   return false}
  return true;
}
$(function() {
		$.datepicker.setDefaults($.extend({showMonthAfterYear: false}, $.datepicker.regional['']));
		$(".datepicker").datepicker($.datepicker.regional['zh-CN']);
		$("#startdate").change(function() {
			$('#startdate').datepicker('option', $.extend({showMonthAfterYear: false},
				$.datepicker.regional[$(this).val()]));
		});
		$("#enddate").change(function() {
			$('#validity').datepicker('option', $.extend({showMonthAfterYear: false},
				$.datepicker.regional[$(this).val()]));
		});
	});
</script>
</head>
<body>
<div id="content">
<fieldset>
<legend style="font-size:16px;">税务登记查询</legend>
<table width="1000" border="1" cellspacing="0"  frame="void" rules="rows">
  <tr>
    <td height="205">
<form name="form1" id="form1" method="post" action="${ctx}/taxmanage/tmTaxRegistQuery_queryByCondtion"  onSubmit="return validate();">
  <table width="900" height="90" border="1" align="center" cellspacing="0"  frame="void" rules="none" style="font-size:14px; background-color:#EAECEC">
    <tr>
      <td width="212" height="37" class="cell_text">多条件查询：</td>
	      <td width="136">&nbsp;</td>
      <td width="157">&nbsp;</td>
      <td width="377">&nbsp;</td>
    </tr>
    <tr>
      <td height="53" align="right" valign="middle" style="font-size:13px;">请选择查询条件：</td>
    <td width="136">
	  <s:select name="condition" list="{'按开业登记证号查询','按纳税人名称查询','按证件号码查询','按法定代表姓名查询'}"  headerKey="-1"  theme="simple"></s:select>      </td>
      <td width="157"><s:textfield name="conditionValue" id="conditionValue" theme="simple"></s:textfield></td>
      <td width="377"><s:submit value="搜 索" theme="simple" ></s:submit></td>
    </tr>
  </table>
  </form>
	</td>
  </tr>
  <tr valign="middle">
    <td height="205">
<form name="form2" id="form2" action="${ctx}/taxmanage/tmTaxRegistQuery_queryByOpenDate" method="post" onSubmit="return validateOne();">
  <table width="900" height="90" border="1" align="center" cellspacing="0" frame="void" rules="none" style="font-size:13px; background-color:#EAECEC">
    <tr style="font-size:14px">
      <td height="37">根据开业日期查询：</td>
      <td colspan="2" align="center">&nbsp;</td>
      <td align="center">&nbsp;</td>
      <td align="center">&nbsp;</td>
    </tr>
    <tr>
      <td width="212" align="right">起始时间：</td>
      <td width="151"><input style="width:120px;" readonly type="text" name="startdate" id="startdate" class="datepicker"></td>
      <td width="71" align="right">截止时间：</td>			
      <td width="152"><input style="width:120px;" readonly type="text" name="enddate" id="enddate" class="datepicker"></td>
      <td width="292"><input type="submit" name="Submit2" value="搜 索"></td>
    </tr>
    <tr>
      <td colspan="5"></td>
      </tr>
  </table>
  </form>
	</td>
  </tr>
</table>
  </fieldset>
</div>
</body>
</html>
